# This file is part of idest -*- autotest -*- # Copyright (C) 2011, 2015 Sergey Poznyakoff # # Idest is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. # # Idest is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with idest. If not, see . AT_SETUP([basic scripting: startup files]) AT_KEYWORDS([script startup script02]) AT_DATA([framelist.scm],[ (define (idest-main name frames) (display name) (newline) (for-each (lambda (frame) (display frame) (newline)) frames)) ]) AT_DATA([.idest.scm],[ (display "Startup file .idest.scm loaded") (newline) (for-each (lambda (dir) (display dir) (newline)) (command-line)) ]) AT_CHECK([ WITH_GUILE([ genfile -f file1 -s $abs_srcdir/id3v1 10k HOME=/tmp idest -S ./framelist.scm file1 | sed '4s|.*/idest/idest.scm|GUILE_SITE_DIR/idest/idest.scm|']) ], [0], [Startup file .idest.scm loaded .idest.scm /tmp/.idest.scm GUILE_SITE_DIR/idest/idest.scm file1 (TIT2 (descr . Title/songname/content description) (text . File)) (TPE1 (descr . Lead performer(s)/soloist(s)) (text . Sergey Poznyakoff)) (TALB (descr . Album/movie/show title) (text . Idest Test Suite)) (TDRC (descr . Recording time) (text . 2011)) (TRCK (descr . Track number/position in set) (text . 1)) (TCON (descr . Content type) (text . Other)) (COMM (descr . Comments) (text . Sample ID3 headers for idest) (lang . XXX) (condesc . )) ]) AT_CLEANUP