add automation scripts.
This commit is contained in:
27
tests/main_test.dart
Normal file
27
tests/main_test.dart
Normal file
@ -0,0 +1,27 @@
|
||||
import 'dart:ffi';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:archimedes_mobile_lib/archimedes_c_shim.dart';
|
||||
import 'package:archimedes_mobile_lib/dynloader.dart';
|
||||
import 'package:archimedes_mobile_lib/util.dart';
|
||||
import 'package:ffi/ffi.dart';
|
||||
import 'package:test/test.dart';
|
||||
import "package:path/path.dart" show dirname, join;
|
||||
|
||||
final assets = join(HERE.parent.path, "assets");
|
||||
final testFrames = join(assets, "test", "frames");
|
||||
final firstFrame = join(testFrames, "0001.png");
|
||||
|
||||
void main() {
|
||||
group('Unit Tests', () {
|
||||
setUp(() {});
|
||||
|
||||
tearDown(() {
|
||||
// Tear down code
|
||||
});
|
||||
test('newFrame', () {
|
||||
Pointer<Uint8> frameData = readUint8Ptr(File(firstFrame));
|
||||
// newFrame(frameData, fData.length, 768, 768, 1204);
|
||||
});
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user