2017-03-20 21:42:12 +00:00
|
|
|
#!/usr/bin/env node
|
2017-03-23 01:18:40 +00:00
|
|
|
var fs = require('fs');
|
2020-07-02 19:57:21 +00:00
|
|
|
var paths = fs.readFileSync('tests/fixtures.lst','utf-8').replace(/\r/g,"").split("\n");
|
2017-03-23 01:18:40 +00:00
|
|
|
var aux = [
|
|
|
|
'multiformat.lst',
|
|
|
|
'./misc/ssf.json',
|
|
|
|
'./test_files/biff5/number_format_greek.xls'
|
|
|
|
]
|
|
|
|
var fullpaths = paths.concat(aux);
|
2020-07-02 19:57:21 +00:00
|
|
|
fs.writeFileSync('tests/fixtures.js',
|
2022-05-25 01:45:55 +00:00
|
|
|
fullpaths.map(function(x) {
|
|
|
|
return [x, fs.existsSync(x) ? fs.readFileSync(x).toString('base64') : ""]
|
|
|
|
}).map(function(w) {
|
|
|
|
return "fs['" + w[0] + "'] = '" + w[1] + "';\n";
|
|
|
|
}).join("")
|
2020-07-02 19:57:21 +00:00
|
|
|
);
|