tests/core: Add code for updating the .gitignore file

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2015-12-21 10:15:27 -05:00
parent ece432bb22
commit d81ef77fb3
2 changed files with 24 additions and 16 deletions

37
tests/core/.gitignore vendored
View File

@ -1,17 +1,22 @@
audio
collection
database
date
driver
file
filter
history
idle
index
playlist
queue
random
set
string
tempq
version
string
random
file
date
containers/set
containers/database
containers/index
containers/queue
filter
idle
tags/album
tags/artist
tags/genre
tags/library
tags/track
queue
playlist
collection
history
tempq
audio

View File

@ -4,10 +4,12 @@ Import("env", "UnitTest", "testing_group")
res = []
core_objs = []
ignore = open(".gitignore", "w")
def CoreTest(name):
global core_objs
ignore.write("%s\n" % name)
source = "%s.c" % name.split("/")[-1]
test = os.path.abspath(source)
core = os.path.sep.join([x for x in test.split("/") if x != "tests"])
@ -42,4 +44,5 @@ res += [ CoreTest("tempq") ]
core_objs += [ env.Object("../../core/core.c") ]
res += [ CoreTest("audio") ]
ignore.close()
Return("res")