forked from veripool/verilog-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
40 lines (29 loc) · 1.38 KB
/
README
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
This is the source distribution for verilog-mode.
Please see http://www.veripool.org/verilog-mode
for more information.
make
make test
cp e/verilog-mode.el <your emacs site lisp path>
======================================================================
TESTS
Make sure both emacs and xemacs are installed and "make test". Testing can run on multiple cores with "make -j 10 test".
Under the hood this is (mostly) running 0test.el. This reads in each file
under tests/ directory, autos, reindents, and compares the result to the
matching filename in the tests_ok directory.
Test failures generally look like this:
diff -c tests_ok/autoinout_ma.v e/t/autoinout_ma.v
***Golden Reference File
---Generated Test File
--- GOLDEN_REFERENCE
+++ CURRENT_BEHAVIOR
...
- output sina,
+ output siuna,
To promote current to golden, in shell buffer hit newline anywhere in next line (^P RETURN):
cp e/t/autoinout_ma.v tests_ok/autoinout_ma.v; VERILOG_MODE_START_FILE=tests_ok/autoinout_ma.v make test_emacs
This indicates the generated output doesn't match what is in tests_ok. To
fix this make sure that the change is expected then do the "cp" shown to
update the golden references:
cp e/t/autoinout_ma.v tests_ok/autoinout_ma.v
Then "make test" again. The suggested VERILOG_MODE_START_FILE can also be
used to jump right to that individual test inside the "make test"