aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test_output.sh
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-13 02:30:59 +0900
committernsfisis <nsfisis@gmail.com>2025-08-15 10:06:21 +0900
commit98cd02501c6622437ea348ef91f8cb38c2d1315e (patch)
tree99d5348f240bf3b3d4bf5e518bcf2974bf8c32fd /tests/test_output.sh
parenta5ab4f4dfacd1938a64df4d07df346774f62c541 (diff)
downloadducc-98cd02501c6622437ea348ef91f8cb38c2d1315e.tar.gz
ducc-98cd02501c6622437ea348ef91f8cb38c2d1315e.tar.zst
ducc-98cd02501c6622437ea348ef91f8cb38c2d1315e.zip
refactor: refactor tests
Diffstat (limited to 'tests/test_output.sh')
-rw-r--r--tests/test_output.sh21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/test_output.sh b/tests/test_output.sh
deleted file mode 100644
index 63dce46..0000000
--- a/tests/test_output.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-cat > main.c
-
-"$ducc" main.c > main.s
-if [[ $? -ne 0 ]]; then
- exit 1
-fi
-gcc -o a.out main.s
-output="$(./a.out)"
-exit_code=$?
-
-if [[ $exit_code -ne 0 ]]; then
- echo "invalid exit code: $exit_code" >&2
- exit 1
-fi
-
-expected="$1"
-
-if [[ "$output" != "$expected" ]]; then
- echo "invalid output: expected '$expected', but got '$output'" >&2
- exit 1
-fi