Skip to content

Commit 467b145

Browse files
committed
test cleanup
1 parent 53db1f8 commit 467b145

File tree

5 files changed

+14
-44
lines changed

5 files changed

+14
-44
lines changed

CHANGELOG.md

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,6 @@
1-
dev
2-
---
3-
* `MicroPythonDevice.getFileHash(filename: string)` / `mctl sha256 <filename>`
4-
* Check if file is already the same
5-
* `MicroPythonDevice.isFileTheSame(filename: string, data: Buffer)`
6-
* `putFile` option `checkIfSimilarBeforeUpload` to avoid uploading another the file if it's already there (requires one more `runScript` if uploading)
7-
8-
9-
1.7.3 (2021-01-15)
10-
------------------
11-
First pretty feature-complete, allround tested version.
12-
13-
`mctl` works on Windows, Linux and macOS!
14-
15-
16-
1.7.2 (2021-01-13)
1+
1.10.0 (28.1.2021)
172
------------------
18-
* many improvements and adding missing commands to the module and mctl
19-
* mounting the device with FUSE
20-
21-
22-
1.7.0 (2021-01-08)
23-
------------------
24-
* `putFile`
25-
* `getFile` returns Buffer
26-
* `mctl mkdir`
27-
* `mctl rm [-r]`
28-
29-
30-
1.6.0 (2021-01-05)
31-
------------------
32-
33-
* renamed `examples/cli.js` -> `examples/mctl.js` (and `yarn cli` to `yarn mctl`)
34-
* `mctl repl`: open a REPL terminal
35-
* `mctl version`: print the current version
36-
37-
38-
1.5.2 (2021-01-05)
39-
-----------------------
403

41-
* Command-line tool `mctl` (`examples/cli.js`)
42-
* bugfix in `listFiles` for browser
4+
* First feature-complete, allround tested version.
5+
* `mctl` works on Windows, Linux and macOS!
6+
* See also https://github.com/metachris/micropython-ctl

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ yarn clean
55
# Build Node.js version
66
yarn buildNode
77
cd dist-node
8-
ln -s ../package.json
8+
cp ../package.json .
99
cd ..
1010

1111
# Build browser version

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"author": "Chris Hager <chris@linuxuser.at>",
1313
"license": "MIT",
1414
"scripts": {
15-
"clean": "rm -rf dist dist-node dist-browser build lib",
15+
"clean": "rm -rf dist dist-node dist-browser build lib package *.tgz",
1616
"lint": "tslint -c tslint.json 'src/**/*.ts' 'test/**/*.ts'",
1717
"build": "./build.sh",
1818
"buildNode": "tsc -p tsconfig.json",

tests/test-package-installation.bat

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
set FILE=E:\micropython-ctl-v1.7.3.tgz
2+
13
echo "Uninstall and clear caches..."
24
call npm uninstall --global micropython-ctl node-fuse-bindings
35
cd C:\Users\IEUser\AppData\Local\Yarn\Cache\v6
@@ -12,9 +14,10 @@ echo "-------------------------------------"
1214
echo "Testing local installation..."
1315
echo "-------------------------------------"
1416
call npm init -y
15-
call npm install E:\micropython-ctl-v1.7.2.tgz
17+
call npm install %FILE%
1618

1719
echo "Testing mctl..."
20+
call ./node_modules/.bin/mctl version
1821
call ./node_modules/.bin/mctl ls
1922
call ./node_modules/.bin/mctl run-tests
2023
call ./node_modules/.bin/mctl mount
@@ -25,9 +28,10 @@ echo "-------------------------------------"
2528

2629
cd ..
2730
call rm -r C:\x\tests
28-
call npm install -g E:\micropython-ctl-v1.7.2.tgz
31+
call npm install -g %FILE%
2932

3033
echo "Testing mctl..."
34+
call mctl version
3135
call mctl ls
3236
call mctl run-tests
3337
call mctl mount

tests/test-package-installation.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ echo "-------------------------------------"
3131
npm install $PACKAGE
3232

3333
echo "Testing mctl..."
34+
./node_modules/.bin/mctl version
3435
./node_modules/.bin/mctl ls
3536
./node_modules/.bin/mctl run-tests
3637
./node_modules/.bin/mctl mount || true
@@ -43,6 +44,7 @@ npm install -g $PACKAGE
4344

4445
echo "Testing mctl..."
4546
which mctl
47+
mctl version
4648
mctl ls
4749
mctl run-tests
4850
mctl mount || true

0 commit comments

Comments
 (0)