[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash 7b52951 008/439: Add watchr script to get autotest
From: |
Phillip Lord |
Subject: |
[elpa] externals/dash 7b52951 008/439: Add watchr script to get autotest |
Date: |
Tue, 04 Aug 2015 20:25:48 +0000 |
branch: externals/dash
commit 7b529511ddd1b463ce0eea10a82ddeaea2e207ff
Author: Magnar Sveen <address@hidden>
Commit: Magnar Sveen <address@hidden>
Add watchr script to get autotest
---
watch-tests.watchr | 38 ++++++++++++++++++++++++++++++++++++++
1 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/watch-tests.watchr b/watch-tests.watchr
new file mode 100644
index 0000000..8146789
--- /dev/null
+++ b/watch-tests.watchr
@@ -0,0 +1,38 @@
+ENV["WATCHR"] = "1"
+system 'clear'
+
+def run(cmd)
+ `#{cmd}`
+end
+
+def run_all_tests
+ system('clear')
+ result = run "./run-tests.sh"
+ puts result
+end
+
+run_all_tests
+watch('.*.el') { run_all_tests }
+
+# Ctrl-\
+Signal.trap 'QUIT' do
+ puts " --- Running all tests ---\n\n"
+ run_all_tests
+end
+
address@hidden = false
+
+# Ctrl-C
+Signal.trap 'INT' do
+ if @interrupted then
+ @wants_to_quit = true
+ abort("\n")
+ else
+ puts "Interrupt a second time to quit"
+ @interrupted = true
+ Kernel.sleep 1.5
+ # raise Interrupt, nil # let the run loop catch it
+ run_all_tests
+ @interrupted = false
+ end
+end
- [elpa] branch externals/dash created (now eadb265), Phillip Lord, 2015/08/04
- [elpa] externals/dash 300fbc6 002/439: Remove lisp-comments from README, Phillip Lord, 2015/08/04
- [elpa] externals/dash 9a34da8 004/439: Add config for travis-ci, Phillip Lord, 2015/08/04
- [elpa] externals/dash 302c8ea 001/439: Initial commit., Phillip Lord, 2015/08/04
- [elpa] externals/dash 14673a6 007/439: Use nreverse for performance reasons., Phillip Lord, 2015/08/04
- [elpa] externals/dash 7b52951 008/439: Add watchr script to get autotest,
Phillip Lord <=
- [elpa] externals/dash 93957f0 006/439: Add travis status icon to README, Phillip Lord, 2015/08/04
- [elpa] externals/dash ad44aee 009/439: Add more tests., Phillip Lord, 2015/08/04
- [elpa] externals/dash 065f76b 005/439: Use ert.el to run on Emacs 23 as well., Phillip Lord, 2015/08/04
- [elpa] externals/dash e720428 010/439: Extract basic iteration form into macro., Phillip Lord, 2015/08/04
- [elpa] externals/dash c229ba8 011/439: Rewrite to anaphoric filter function., Phillip Lord, 2015/08/04
- [elpa] externals/dash d870282 013/439: Add some tests, and fix the bugs they uncovered., Phillip Lord, 2015/08/04
- [elpa] externals/dash 3e0ef58 012/439: !filter can now take either a function or form (anaphoric), Phillip Lord, 2015/08/04
- [elpa] externals/dash b24d056 014/439: !map macro, Phillip Lord, 2015/08/04
- [elpa] externals/dash ed2e447 015/439: !reduce macro, Phillip Lord, 2015/08/04
- [elpa] externals/dash f9471e4 016/439: !concat done - one less 'cl dependency, Phillip Lord, 2015/08/04