]> git.draconx.ca Git - upkg.git/blobdiff - tests/libupkg-index-decode.sh
libupkg: Actually fail if the index-decode test fails...
[upkg.git] / tests / libupkg-index-decode.sh
index b82bbc94e75f81d9674a7c562b444697c06f4d85..f5c913d587f43c5d454e22022e914e6096194ff9 100644 (file)
@@ -38,17 +38,17 @@ test_index() {
        esac
 }
 
-test_index 00 0
-test_index 4000 0
-test_index 408000 0
-test_index 40808000 0
-test_index 4080808000 0
+test_index 00 0         || exit 1
+test_index 4000 0       || exit 1
+test_index 408000 0     || exit 1
+test_index 40808000 0   || exit 1
+test_index 4080808000 0 || exit 1
 
 # False positives
-test_index ''
-test_index 40
-test_index 4080
-test_index 408080
-test_index 40808080
-test_index 4080808080
-test_index 408080808000
+test_index ''           || exit 1
+test_index 40           || exit 1
+test_index 4080         || exit 1
+test_index 408080       || exit 1
+test_index 40808080     || exit 1
+test_index 4080808080   || exit 1
+test_index 408080808000 || exit 1