-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathjustfile
More file actions
54 lines (45 loc) · 1.83 KB
/
Copy pathjustfile
File metadata and controls
54 lines (45 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#
# Copyright (c) 2025-present, Trail of Bits, Inc.
# All rights reserved.
#
# This source code is licensed in accordance with the terms specified in
# the LICENSE file found in the root directory of this source tree.
#
default:
@just --list
check:
cargo check --all-targets --all-features --examples --tests --workspace
cargo clippy --all-targets --all-features --examples -- -D warnings
cargo fmt --check
cd integration-tests/sql-queries/verifier && uv run ruff check src/
cd integration-tests/sql-queries/verifier && uv run ruff format --check src/
cd integration-tests/sql-queries/verifier && uv run mypy src/
test:
cargo test
install-views:
mkdir -p ~/.config/trailofbits/mquire/autostart
cp -r sql/views/* ~/.config/trailofbits/mquire/autostart/
integration-test: install-views
for config in integration-tests/sql-queries/cfg/*.json; do \
name=$(basename "$config" .json); \
output="test-${name}-$(date +%Y%m%d-%H%M%S).xml"; \
echo "Running $name -> $output"; \
(cd integration-tests/sql-queries/verifier && \
uv run mquire-sql-query-verifier ../cfg/${name}.json "$output"); \
done
integration-update: install-views
for config in integration-tests/sql-queries/cfg/*.json; do \
name=$(basename "$config" .json); \
output="test-${name}-$(date +%Y%m%d-%H%M%S).xml"; \
echo "Updating $name -> $output"; \
(cd integration-tests/sql-queries/verifier && \
uv run mquire-sql-query-verifier ../cfg/${name}.json "$output" --update); \
done
format:
cargo fmt
cd integration-tests/sql-queries/verifier && uv run ruff format src/
[linux]
package:
cargo build --release --target x86_64-unknown-linux-musl
cmake -S package -B package-build -DMQUIRE_REPOSITORY_PATH="$(pwd)"
cmake --build package-build --target package