blob: 5f6803e79552f7ba7e9182f2c08379a784ffbb6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
# script to test the lexer
echo "========================================"
echo " Cleaning the temporaries and outputs"
make clean
echo " Force building lexer"
make bin/c_lexer -B
if [[ "$?" -ne 0 ]]; then
echo "Build failed.";
fi
echo "========================================="
echo " Testing lexer"
cpp c_lexer/test/test_lex.c c_lexer/test/pre_processed_test_lex.c
cat c_lexer/test/pre_processed_test_lex.c | bin/c_lexer | tee c_lexer/test/output.json
#cat test/test_lex.c | ./bin/c_lexer | tee test/output.json
|