# NCOPY tests

Automated NCOPY comparison tests for MARS NWE DOS tools.

`NCOPY` is a larger copy/metadata tool.  The current test is designed to
capture Novell behaviour first and compare the Open Source DOS utility against
it before the implementation is completed.

## Files

| File | Purpose |
| --- | --- |
| `NCPTSTA.BAT` | Automated Novell-vs-PUBLIC NCOPY comparison. Writes results to `F:\NCMP`. |
| `NCPTZIP.BAT` | Optional packer for `F:\NCMP\NCPTSTA.ZIP`. |
| `README_AUTO.md` | Older notes for the automated test. |
| `NCPTSTN.BAT` | Manual/pause-based NCOPY baseline test. |
| `NCPCMPN.BAT` | Manual repeat selected comparisons/output. |
| `NCPTSTM.TST` | MARS/dosutils regression notes/spec. |

## Layout

`NCPTSTA.BAT` uses the same direction as the other tool tests:

| Directory | Meaning |
| --- | --- |
| `OUT` | command output from Novell `NPUBLIC\NCOPY` |
| `PUBOUT` | command output from Open Source `PUBLIC\NCOPY` |
| `POSTNOV` | resulting file state captured with Novell tools |
| `POSTPUB` | resulting file state captured with Open Source tools |
| `COMPARE.LOG` | `FC` comparisons for command output and resulting state |

## Run

From a logged-in Supervisor session:

```text
F:\NCPTSTA
```

Then inspect:

```text
F:\NCMP\COMPARE.LOG
F:\NCMP\SUMMARY.TXT
```

Optionally pack the results:

```text
F:\NCPTZIP
```

and upload:

```text
F:\NCMP\NCPTSTA.ZIP
```

## Current matrix

The automated comparison covers:

- `NCOPY /?`
- `NCOPY` with no arguments
- single-file copy with `TO`
- copy of hidden/archive and read-only/archive files
- `/V`
- `/S`
- `/S /E`
- `/A /S`
- `/M /S`, including source archive-bit readback
- missing source
- `/E` without `/S`

The resulting destination/source state is checked with the already validated
`FLAG`, `NDIR`, and `RIGHTS` tools.
