Megatest

Check-in [566569e56f]
Login
Overview
Comment:Updated version file and made it so that cleanup-db will get rid of old test_dat items
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | v1.65 | v1.6514
Files: files | file ages | folders
SHA1: 566569e56f5ce387da9bd1238e12e4a4673193a9
User & Date: jmoon18 on 2018-08-27 16:48:38
Other Links: branch diff | manifest | tags
Context
2018-08-27
17:01
Fix to remove test_dat info check-in: 38764bf86d user: jmoon18 tags: v1.65, v1.6514
16:48
Updated version file and made it so that cleanup-db will get rid of old test_dat items check-in: 566569e56f user: jmoon18 tags: v1.65, v1.6514
2018-08-24
15:57
Docs update check-in: 33cf143a50 user: mrwellan tags: v1.65, v1.6514
Changes

Modified db.scm from [fefb809451] to [9cc4752702].

1743
1744
1745
1746
1747
1748
1749



1750
1751
1752
1753
1754
1755
1756
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759







+
+
+







	       (conc "DELETE FROM runs WHERE state='deleted' and last_update < " keep-record-age ";")
	       ;; delete empty runs
	       (conc "DELETE FROM runs WHERE id NOT IN (SELECT DISTINCT r.id FROM runs AS r INNER JOIN tests AS t ON t.run_id=r.id) and last_update < " keep-record-age ";")
	       ;; remove orphaned test_rundat entries
	       (conc "DELETE FROM test_rundat where test_id NOT IN (SELECT id FROM tests) ;")
	       ;; 
	       (conc "DELETE FROM test_steps WHERE test_id NOT IN (SELECT id FROM tests) and last_update < " keep-record-age " ;")
               ;; remove orphaned test_dat entries
	       (conc "DELETE FROM test_data WHERE test_id NOT IN (SELECT id FROM tests) and last_update < " keep-record-age " ;")

	       ))))
    ;; (db:delay-if-busy dbdat)
    ;(debug:print-info 0 *default-log-port*  statements) 
    (sqlite3:with-transaction 
     db
     (lambda ()
       (sqlite3:for-each-row (lambda (tot)

Modified megatest-version.scm from [930977eeef] to [a98be9fc64].

16
17
18
19
20
21
22
23

24
16
17
18
19
20
21
22

23








-
+
-
;;     along with Megatest.  If not, see <http://www.gnu.org/licenses/>.

;; Always use two or four digit decimal
;; 1.01, 1.02...1.10,1.11,1.1101 ... 1.99,2.00..

(declare (unit megatest-version))

(define megatest-version 1.6513)
(define megatest-version 1.6514)