Browse code

(asma) Add check that asma itself can be assembled in asma-test.sh.

Andrew Alderwick authored on 19/10/2022 11:06:45
Showing 1 changed files
... ...
@@ -15,7 +15,11 @@ expect_failure() {
15 15
 }
16 16
 
17 17
 echo 'Assembling asma with uxnasm'
18
-bin/uxnasm projects/software/asma.tal asma-test/asma.rom > asma-test/uxnasm.log
18
+if ! bin/uxnasm projects/software/asma.tal asma-test/asma.rom > asma-test/uxnasm.log; then
19
+	echo 'Failed to assemble asma!'
20
+	cat asma-test/uxnasm.log
21
+	exit 1
22
+fi
19 23
 for F in $(find projects -path projects/library -prune -false -or -path projects/assets -prune -false -or -type f -name '*.tal' | sort); do
20 24
 	echo "Comparing assembly of ${F}"
21 25