diff options
author | Sven Gothel <[email protected]> | 2010-11-04 01:58:32 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-04 01:58:32 +0100 |
commit | 4d56491c3f8e76676e1c860d018bbe991d28ebac (patch) | |
tree | f5d9a7f61614b94ad3dd81fc55e323e2f9fed4e0 /make/scripts/count-lock.sh | |
parent | a0e9d6c8382b7275db6fae664be44db6b59671d5 (diff) |
Seperated unit tests (newt/awt/headless) and cleaned up some imports and comments
Seperated unit tests (newt/awt/headless)
- no more *CORE* tests
- junit.run.newt.headless: all NEWT headless (no-AWT) tests,
without any AWT classes and with -Djava.awt.headless=true.
Disabled for 'isOSX'.
- junit.run.newt: all NEWT non AWT tests (same as above),
but with full AWT. This test is not enabled via junit.run.
Disabled for 'isOSX'.
- junit.run.awt: all AWT tests without NEWT
- using newt.event.jar to add AWT agnostic NEWT event adapter
- junit.run.newt.awt: all NEWT + AWT tests
- junit.run: junit.run.newt.headless,junit.run.awt,junit.run.newt.awt
- swizzling around a few tests to achieve the above:
TEST rules:
- A runnable unit test must start with 'Test'
- Only pure NEWT tests must have 'NEWT' in their name
- AWT tests must have 'AWT' in their name.
- AWT + NEWT tests must have '.newt.' in their package name, hence
- Pure AWT tests (without NEWT) must not have '.newt.' in their package name
Diffstat (limited to 'make/scripts/count-lock.sh')
-rw-r--r-- | make/scripts/count-lock.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/make/scripts/count-lock.sh b/make/scripts/count-lock.sh new file mode 100644 index 000000000..806235f5c --- /dev/null +++ b/make/scripts/count-lock.sh @@ -0,0 +1,17 @@ + +echo lock +grep -RI "lock()" ../src/ | wc +echo unlock +grep -RI "unlock()" ../src/ | wc +echo +echo + +for i in `grep -RIl "unlock()" ../src/` ; do + echo $i + echo lock + grep -RI "lock()" $i | wc + echo unlock + grep -RI "unlock()" $i | wc + echo + echo +done |